package com.xw.childhealth.service.impl;

import com.xw.childhealth.dao.ChildrenHyjcmbDao;
import com.xw.childhealth.entity.ChildrenHyjcmb;
import com.xw.childhealth.service.ChildrenHyjcmbService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description:
 * @Author: y
 * @CreateDate: 2019-11-15 09:33
 * @Version: 1.0
 */
@Service
public class ChildrenHyjcmbServiceImpl implements ChildrenHyjcmbService {


    @Autowired
    private ChildrenHyjcmbDao childrenHyjcmbDao;

    @Override
    public List<ChildrenHyjcmb> findAll() {
        return childrenHyjcmbDao.findAll();
    }

    @Override
    public ChildrenHyjcmb findByIdEquals(Integer id) {
        return childrenHyjcmbDao.findByIdEquals(id);
    }

    @Override
    public void delRecord(Integer id) {
        childrenHyjcmbDao.deleteById(id);
    }

    @Override
    public ChildrenHyjcmb save(ChildrenHyjcmb one) {
        return childrenHyjcmbDao.save(one);
    }
}
